-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Proposal: Support Sector and Industry data from Markets Tab #2058
Conversation
Thank you @ericpien 🙌 |
I ran
Also, you can put hardcoded stuff like |
@ValueRaider thanks for reviewing. I made the changes for I can't reproduce the for s in const.SECTOR_INDUSTY_MAPPING:
sector = yf.Sector(s)
print(f'sector symbol: {sector.symbol}')
for i in const.SECTOR_INDUSTY_MAPPING[s]:
industry = yf.Industry(i)
print(f'industry symbol: {industry.symbol}') |
Your change has improved the error - it still happens randomly but is cleaner. Probably related to my spam, I'm doing other fetches. One more error:
|
Sector and Industry class to query the data available on: https://finance.yahoo.com/sectors/: - sector / industry overview - sector / industry top companies - sector / industry research reports - sector top ETFs - sector top Mutual Funds - industries within sector - industry's sector - industry's top performing companies - industry's top growth companies
Thanks. Corrected the param name and checked the other params are correct as well. |
I'm hoping to release in a week, I'm just finishing testing improvements to dividend repair. |
The following data is available on: https://finance.yahoo.com/sectors/:
Resolves:
Sample code: